package com.hxzy.research.mapper;

import com.hxzy.research.pojo.TblCourse;

import java.util.List;

public interface TblCourseMapper {
    int deleteByPrimaryKey(Integer id);
    //删除课程
    public void deleteCourse(Integer kid)throws Exception;

    int insert(TblCourse record);
    //添加课程
    public void addCourse(TblCourse tblCourse)throws Exception;
    //通过课程id查课程
    public TblCourse findCourseById(Integer kid) throws Exception;

    int insertSelective(TblCourse record);

    TblCourse selectByPrimaryKey(Integer id);
    //根据分公司id查询课程
    public List<TblCourse> selectCourseByid(Integer branchid);

    int updateByPrimaryKeySelective(TblCourse record);
    //修改课程
    public void updateCourse(TblCourse tblCourse)throws Exception;
    int updateByPrimaryKey(TblCourse record);
}